//
// Created by yangdian on 2020/5/18.
//

#ifndef XPLAY_XDATA_H
#define XPLAY_XDATA_H

enum XDataType
{
    AVPACKET_TYPE = 0,
    UCHAR_TYPE = 1,
};

struct XData {
    int type = 0;
    unsigned char *data = 0;
    unsigned char *datas[8] = {0};
    bool isAudio = false;
    int size = 0;
    int width = 0;
    int height = 0;
    int format = 0;
    bool Alloc(int size, const char *d = 0);
    void Drop();
};


#endif //XPLAY_XDATA_H
